package com.java2404.micro.consumer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.java2404.micro.common.entity.Consumer;
import com.java2404.micro.common.entity.User;

import java.math.BigDecimal;

/**
 * @author Zeka
 * @title: ConsumerService
 * @projectName mall-system
 * @description: 消费者业务接口
 * @date 2025/01/03  20:01
 */
public interface ConsumerService extends IService<Consumer> {

    /**
     * 扣减消费者余额
     * @param userId 用户ID
     * @param amount 扣减的金额
     */
    void deductBalance(Integer userId, BigDecimal amount);



}
